<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div class="flex">
        <div class="top">Lorem ipsum dolor sit amet 
            consectetur adipisicing elit. Enim suscipit porro 
            saepe architecto soluta iure, deleniti at vitae alias nulla deserunt 
            maiores vero! Ipsam officiis exercitationem voluptatem, vero ipsum quia.
            <p>Lorem ipsum dolor sit amet consectetur adipisicing 
                elit. Excepturi voluptatibus debitis ratione dignissimos
                 veritatis cumque ad fugiat molestiae, dolor repellat 
                 reiciendis quos, labore eum quam adipisci similique 
                 illo fuga ipsa?</p>
        </div>
        <div class="bottom"></div>
    </div>
</body>
<style>
    .flex{
        display: flex;
        height: 600px;
        width: 40%;
        background-color: aqua;
        flex-direction: column;
        flex-wrap:nowrap;
    }
    .top{
        /* position: inherit; */
        height: 240px;
        /* width: 200px; */
        background-color: red;
        overflow:auto;
        /* flex-wrap:nowrap; */
        /* word-break:keep-all;
         */
         white-space:nowrap;
    }
    .bottom{
        height: 360px;
        /* width: 200px; */
        background-color: royalblue;
    }
</style>
</html>